package cn.fyg.service.finance.domain.accountdetail;

import lombok.Data;

@Data
public class ProjectdetailDto {
	private String fdate;
	private String fcreditamount;
	private String fdebitamount;
	private String fdescription;
	private String amount;
	
	public String getFdate() {
		return "日期: " + this.fdate;
	}
	
	public String getAmount() {
		if (this.fcreditamount.equals("0")) {
			amount = "金额：+" + this.fdebitamount + " 元";
		}else {
			amount = "金额：-" + this.fcreditamount + " 元";
		}
		return amount;
	}
	
}	
